webpackJsonp([3],{

/***/ 199:
/***/ (function(module, exports, __webpack_require__) {

var disposed = false
var normalizeComponent = __webpack_require__(76)
/* script */
var __vue_script__ = __webpack_require__(223)
/* template */
var __vue_template__ = __webpack_require__(229)
/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = null
/* scopeId */
var __vue_scopeId__ = null
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null
var Component = normalizeComponent(
  __vue_script__,
  __vue_template__,
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)
Component.options.__file = "resources/assets/js/components/common/home.vue"

/* hot reload */
if (false) {(function () {
  var hotAPI = require("vue-hot-reload-api")
  hotAPI.install(require("vue"), false)
  if (!hotAPI.compatible) return
  module.hot.accept()
  if (!module.hot.data) {
    hotAPI.createRecord("data-v-249f4e88", Component.options)
  } else {
    hotAPI.reload("data-v-249f4e88", Component.options)
  }
  module.hot.dispose(function (data) {
    disposed = true
  })
})()}

module.exports = Component.exports


/***/ }),

/***/ 223:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__menuNav_vue__ = __webpack_require__(224);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__menuNav_vue___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0__menuNav_vue__);
//
//
//
//
//
//
//
//
//
//
//



/* harmony default export */ __webpack_exports__["default"] = ({
  computed: {
    loading: function loading() {
      //return this.$store.state.loading
    }
  },
  components: { menuNav: __WEBPACK_IMPORTED_MODULE_0__menuNav_vue___default.a }
});

/***/ }),

/***/ 224:
/***/ (function(module, exports, __webpack_require__) {

var disposed = false
function injectStyle (ssrContext) {
  if (disposed) return
  __webpack_require__(225)
}
var normalizeComponent = __webpack_require__(76)
/* script */
var __vue_script__ = __webpack_require__(227)
/* template */
var __vue_template__ = __webpack_require__(228)
/* template functional */
var __vue_template_functional__ = false
/* styles */
var __vue_styles__ = injectStyle
/* scopeId */
var __vue_scopeId__ = "data-v-057ef0f7"
/* moduleIdentifier (server only) */
var __vue_module_identifier__ = null
var Component = normalizeComponent(
  __vue_script__,
  __vue_template__,
  __vue_template_functional__,
  __vue_styles__,
  __vue_scopeId__,
  __vue_module_identifier__
)
Component.options.__file = "resources/assets/js/components/common/menuNav.vue"

/* hot reload */
if (false) {(function () {
  var hotAPI = require("vue-hot-reload-api")
  hotAPI.install(require("vue"), false)
  if (!hotAPI.compatible) return
  module.hot.accept()
  if (!module.hot.data) {
    hotAPI.createRecord("data-v-057ef0f7", Component.options)
  } else {
    hotAPI.reload("data-v-057ef0f7", Component.options)
  }
  module.hot.dispose(function (data) {
    disposed = true
  })
})()}

module.exports = Component.exports


/***/ }),

/***/ 225:
/***/ (function(module, exports, __webpack_require__) {

// style-loader: Adds some css to the DOM by adding a <style> tag

// load the styles
var content = __webpack_require__(226);
if(typeof content === 'string') content = [[module.i, content, '']];
if(content.locals) module.exports = content.locals;
// add the styles to the DOM
var update = __webpack_require__(77)("bdaf669a", content, false, {});
// Hot Module Replacement
if(false) {
 // When the styles change, update the <style> tags
 if(!content.locals) {
   module.hot.accept("!!../../../../../node_modules/css-loader/index.js!../../../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-057ef0f7\",\"scoped\":true,\"hasInlineConfig\":true}!../../../../../node_modules/vux-loader/src/style-loader.js!../../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./menuNav.vue", function() {
     var newContent = require("!!../../../../../node_modules/css-loader/index.js!../../../../../node_modules/vue-loader/lib/style-compiler/index.js?{\"vue\":true,\"id\":\"data-v-057ef0f7\",\"scoped\":true,\"hasInlineConfig\":true}!../../../../../node_modules/vux-loader/src/style-loader.js!../../../../../node_modules/vue-loader/lib/selector.js?type=styles&index=0!./menuNav.vue");
     if(typeof newContent === 'string') newContent = [[module.id, newContent, '']];
     update(newContent);
   });
 }
 // When the module is disposed, remove the <style> tags
 module.hot.dispose(function() { update(); });
}

/***/ }),

/***/ 226:
/***/ (function(module, exports, __webpack_require__) {

exports = module.exports = __webpack_require__(48)(false);
// imports


// module
exports.push([module.i, "\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n/*头部*/\n.header[data-v-057ef0f7] {\n    position: absolute;\n    top: 0;\n    left: 0;\n    z-index: 111;\n    height: 65px;\n    width: 100%;\n    min-width: 1400px;\n    background-color: #1cadf1;\n    color: #fff;\n    -webkit-box-sizing: border-box;\n            box-sizing: border-box;\n}\n\n/*ul li {*/\n    /*list-style-type: none;*/\n/*}*/\n.header > div[data-v-057ef0f7] {\n    float: left;\n}\n.logo[data-v-057ef0f7] {\n    width: 265px;\n    line-height: 65px;\n    padding-left: 25px;\n    -webkit-box-sizing: border-box;\n            box-sizing: border-box;\n    font-size: 24px;\n    font-weight: bold;\n}\n.logo a[data-v-057ef0f7] {\n    display: block;\n    color: #fff;\n}\n.nav li[data-v-057ef0f7] {\n    float: left;\n    width: 105px;\n    height: 65px;\n    text-align: center;\n    font-size: 16px;\n    -webkit-box-sizing: border-box;\n            box-sizing: border-box;\n    cursor: pointer;\n}\n.nav li > div[data-v-057ef0f7] {\n    height: 65px;\n    padding-top: 23px;\n    -webkit-box-sizing: border-box;\n            box-sizing: border-box;\n}\n.nav li a[data-v-057ef0f7] {\n    color: #fff;\n}\n.leave1_act[data-v-057ef0f7] {\n    background-color: #0f86be;\n}\n.leave1_act p[data-v-057ef0f7] {\n    border: none;\n}\n.nav li:last-child p[data-v-057ef0f7] {\n    border: none;\n}\n.nav li p[data-v-057ef0f7] {\n    height: 20px;\n    line-height: 20px;\n    border-right: 1px solid #5dc2f1;\n}\n.header .admin[data-v-057ef0f7] {\n    line-height: 65px;\n    text-align: center;\n    float: right;\n    margin-right: 20px;\n    font-size: 14px;\n    cursor: pointer;\n}\n.to-pc[data-v-057ef0f7] {\n    color: #fff;\n    font-size: 16px;\n}\n.admin li[data-v-057ef0f7] {\n    float: left;\n    width: 120px;\n    border-right: 1px solid #4ac0f6;\n}\n.admin .last-li[data-v-057ef0f7] {\n    border: none;\n}\n.el-dropdown-link[data-v-057ef0f7] {\n    color: #fff;\n}\n\n/*左侧*/\n.left[data-v-057ef0f7] {\n    position: absolute;\n    top: 0;\n    left: 0;\n    z-index: 99;\n    padding-top: 65px;\n    width: 265px;\n    height: 100%;\n    font-size: 14px;\n    text-align: center;\n    -webkit-box-sizing: border-box;\n            box-sizing: border-box;\n}\n.leave2[data-v-057ef0f7] {\n    float: left;\n    width: 85px;\n    height: 100%;\n    background-color: #2399d0;\n    color: #fff;\n}\n.leave2_act[data-v-057ef0f7] {\n    background-color: #fdb61e;\n}\n.leave2 div[data-v-057ef0f7] {\n    line-height: 50px;\n    cursor: pointer;\n}\n.leave2 li[data-v-057ef0f7], .leave3 li[data-v-057ef0f7] {\n    height: 62px;\n    padding-top: 12px;\n    -webkit-box-sizing: border-box;\n            box-sizing: border-box;\n}\n.leave3[data-v-057ef0f7] {\n    margin-left: 85px;\n    height: 100%;\n    background-color: #ebedf1;\n    border-right: 1px solid #d1dadc;\n}\n.leave3_act[data-v-057ef0f7] {\n    background-color: #fff;\n}\n.leave3 li div[data-v-057ef0f7] {\n    color: #333;\n    cursor: pointer;\n    line-height: 50px;\n}\n", ""]);

// exports


/***/ }),

/***/ 227:
/***/ (function(module, __webpack_exports__, __webpack_require__) {

"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//

/* harmony default export */ __webpack_exports__["default"] = ({
    data: function data() {
        return {
            logo: 'Demo',
            navs: [], // 全部菜单
            leave2: [], // 二级菜单
            leave3: [], // 三级菜单
            lv1: '', // 当前一级菜单
            lv2: '', // 当前二级菜单
            lv3: '' // 当前三级菜单
        };
    },

    watch: {
        '$route': function $route(to, from) {
            // 优化路由当前定位
            this.lv1 = this.$route.name.substr(0, 1);
            this.lv2 = this.$route.name.substr(0, 3);
            this.lv3 = this.$route.name;
            this.to_leave2(this.lv1);
            this.to_leave3(this.lv2);
        }
    },
    created: function created() {
        var _this = this;

        // 请求菜单列表
        window.axiox.post(this.getApi('root/auth/menu')).then(function (res) {
            if (res.data.code === 0) {
                _this.navs = res.data.menu;

                // 获取菜单位置
                _this.navs.forEach(function (item) {
                    item.child.forEach(function (ite) {
                        ite.child.forEach(function (it) {
                            if (it.id === _this.$route.name) {
                                // 高亮当前定位
                                _this.lv1 = item.id;
                                _this.lv2 = ite.id;
                                _this.lv3 = it.id;
                                // 分配显示菜单
                                _this.leave2 = item.child;
                                console.log(_this.leave2);
                                _this.leave3 = ite.child;
                            }
                        });
                    });
                });
            } else {
                _this.$message(res.data.msg);
            }
        }).catch(function () {
            _this.$message('对不起！服务器出错啦，请刷新重试');
        });
    },
    mounted: function mounted() {
        this.name = JSON.parse(sessionStorage.getItem('user')).name;
    },

    methods: {
        // 点击一级菜单分配二、三级菜单
        to_leave2: function to_leave2(id) {
            var _this2 = this;

            this.navs.forEach(function (item) {
                if (item.id === id) {
                    _this2.leave2 = item.child;
                    _this2.leave3 = item.child[0].child;
                }
            });
        },

        // 点击二级菜单分配三级菜单
        to_leave3: function to_leave3(id) {
            var _this3 = this;

            this.leave2.forEach(function (item) {
                if (item.id === id) {
                    _this3.leave3 = item.child;
                }
            });
        },

        // 当前位置
        current: function current(id) {
            this.lv3 = id;
        },

        // 点击logo去首页
        to_index: function to_index() {
            this.to_leave2('8');
        },

        // 清除缓存
        clearCache: function clearCache() {
            this.$message('清除成功');
        },

        // 安全退出
        exit: function exit() {
            var _this4 = this;

            axiox.post(this.getApi('root/login-exit')).then(function (res) {
                if (res.data.code === 0) {
                    _this4.$message(res.data.msg);
                    _this4.$router.push('/login');
                } else {
                    _this4.$message(res.data.msg);
                }
            });
        },

        // 下来菜单操作
        handle: function handle(val) {
            switch (val) {
                case '0':
                    this.clearCache();
                    break;
                case '1':
                    this.exit();
                    break;
                case '2':
                    this.$router.push({ name: '8-3-1' });
                    break;
            }
        }
    }
});

/***/ }),

/***/ 228:
/***/ (function(module, exports, __webpack_require__) {

var render = function() {
  var _vm = this
  var _h = _vm.$createElement
  var _c = _vm._self._c || _h
  return _c("div", { staticClass: "menu-nav" }, [
    _c("div", { staticClass: "header" }, [
      _c(
        "div",
        { staticClass: "logo", on: { click: _vm.to_index } },
        [
          _c("router-link", { attrs: { to: "/index" } }, [
            _vm._v(_vm._s(_vm.logo))
          ])
        ],
        1
      ),
      _vm._v(" "),
      _c("div", { staticClass: "nav" }, [
        _c(
          "ul",
          { staticStyle: { "list-style-type": "none" } },
          _vm._l(_vm.navs, function(item) {
            return _c(
              "li",
              {
                key: item.id,
                class: { leave1_act: item.id === _vm.lv1 },
                on: {
                  click: function($event) {
                    _vm.to_leave2(item.id)
                  }
                }
              },
              [
                _c(
                  "router-link",
                  { attrs: { to: { name: item.id + "-1-1" }, tag: "div" } },
                  [_c("p", [_vm._v(_vm._s(item.title))])]
                )
              ],
              1
            )
          })
        )
      ]),
      _vm._v(" "),
      _c("div", { staticClass: "admin" }, [
        _c("ul", [
          _c(
            "li",
            { staticClass: "last-li" },
            [
              _c(
                "el-dropdown",
                { attrs: { trigger: "click" }, on: { command: _vm.handle } },
                [
                  _c("span", { staticClass: "el-dropdown-link" }, [
                    _vm._v("\n            快捷"),
                    _c("i", {
                      staticClass: "el-icon-caret-bottom el-icon--right"
                    })
                  ]),
                  _vm._v(" "),
                  _c(
                    "el-dropdown-menu",
                    { attrs: { slot: "dropdown" }, slot: "dropdown" },
                    [
                      _c("el-dropdown-item", { attrs: { command: "0" } }, [
                        _vm._v("清除缓存")
                      ]),
                      _vm._v(" "),
                      _c("el-dropdown-item", { attrs: { command: "1" } }, [
                        _vm._v("安全退出")
                      ]),
                      _vm._v(" "),
                      _c("el-dropdown-item", { attrs: { command: "2" } }, [
                        _vm._v("修改密码")
                      ])
                    ],
                    1
                  )
                ],
                1
              )
            ],
            1
          )
        ])
      ])
    ]),
    _vm._v(" "),
    _c("div", { staticClass: "left" }, [
      _c("div", { staticClass: "leave2" }, [
        _c(
          "ul",
          _vm._l(_vm.leave2, function(item) {
            return _c(
              "li",
              {
                on: {
                  click: function($event) {
                    _vm.to_leave3(item.id)
                  }
                }
              },
              [
                _c(
                  "router-link",
                  {
                    class: { leave2_act: item.id === _vm.lv2 },
                    attrs: { to: { name: item.id + "-1" }, tag: "div" }
                  },
                  [
                    _vm._v(
                      "\n                        " +
                        _vm._s(item.title) +
                        "\n                    "
                    )
                  ]
                )
              ],
              1
            )
          })
        )
      ]),
      _vm._v(" "),
      _c("div", { staticClass: "leave3" }, [
        _c(
          "ul",
          _vm._l(_vm.leave3, function(item) {
            return _c(
              "li",
              [
                _c(
                  "router-link",
                  {
                    class: { leave3_act: item.id === _vm.lv3 },
                    attrs: { to: { name: item.id }, tag: "div" }
                  },
                  [_vm._v(_vm._s(item.title) + "\n                    ")]
                )
              ],
              1
            )
          })
        )
      ])
    ])
  ])
}
var staticRenderFns = []
render._withStripped = true
module.exports = { render: render, staticRenderFns: staticRenderFns }
if (false) {
  module.hot.accept()
  if (module.hot.data) {
    require("vue-hot-reload-api")      .rerender("data-v-057ef0f7", module.exports)
  }
}

/***/ }),

/***/ 229:
/***/ (function(module, exports, __webpack_require__) {

var render = function() {
  var _vm = this
  var _h = _vm.$createElement
  var _c = _vm._self._c || _h
  return _c(
    "div",
    { staticClass: "home" },
    [
      _c("menuNav"),
      _vm._v(" "),
      _c(
        "div",
        { staticClass: "all-right" },
        [
          _c(
            "transition",
            { attrs: { name: "move", mode: "out-in" } },
            [_c("router-view")],
            1
          )
        ],
        1
      )
    ],
    1
  )
}
var staticRenderFns = []
render._withStripped = true
module.exports = { render: render, staticRenderFns: staticRenderFns }
if (false) {
  module.hot.accept()
  if (module.hot.data) {
    require("vue-hot-reload-api")      .rerender("data-v-249f4e88", module.exports)
  }
}

/***/ })

});